package com.example.lotterysystem.controler.param;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.rmi.MarshalException;
import java.util.Date;
import java.util.List;

/**
 * @Author xuejiao
 * Data 2025/5/8 21:46
 */
@Data
public class DrawPrizeParam {

    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @NotNull(message = "奖品id不能为空")

    private Long prizeId;


    @NotNull(message = "中奖时间不能为空")

    private Date winningTime;

    @NotNull(message = "中奖者列表不能为空")

    private List<Winner> winnerList;

    @Data
    public static class Winner {
        @NotNull(message = "中奖者id不能为空")

        private Long userId;
        @NotNull(message = "中奖者姓名不能为空")

        private String userName;
    }
}
